#! /bin/bash
CWD=`pwd`
cd /home/bob/dev/projects/acorn-sdr/ozy
./loadFW 0xfffe 0x0007 ozyfw-sdr1k.hex
sleep 3
./loadFPGA 0xfffe 0x0007 Ozy_Janus.rbf
sleep 3
./write_i2c 0xfffe 0x7 0x1b 0x1e 0x00 0x00 2
./write_i2c 0xfffe 0x7 0x1b 0x12 0x01 0x00 2
./write_i2c 0xfffe 0x7 0x1b 0x08 0x15 0x00 2
./write_i2c 0xfffe 0x7 0x1b 0x0c 0x00 0x00 2
./write_i2c 0xfffe 0x7 0x1b 0x0e 0x02 0x00 2
./write_i2c 0xfffe 0x7 0x1b 0x10 0x00 0x00 2
./write_i2c 0xfffe 0x7 0x1b 0x0a 0x00 0x00 2
sleep 3
./write_i2c 0xfffe 0x7 0x1a 0x1e 0x00 0x00 2
./write_i2c 0xfffe 0x7 0x1a 0x12 0x01 0x00 2
./write_i2c 0xfffe 0x7 0x1a 0x08 0x15 0x00 2
./write_i2c 0xfffe 0x7 0x1a 0x0c 0x00 0x00 2
./write_i2c 0xfffe 0x7 0x1a 0x0e 0x02 0x00 2
./write_i2c 0xfffe 0x7 0x1a 0x10 0x00 0x00 2
./write_i2c 0xfffe 0x7 0x1a 0x0a 0x00 0x00 2
cd $CWD
